<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/home1-css/style.css" />
</head>
<!-------------Start--header---------->

	<div id="header">
		<div class="logo">
          <a href="#">Pizza Shop</a>
        </div>
        
        <!------------logo ends here----------->
        
        <div class="right_box">
      	 <ul class="links">
        	<li><a href="welcome.action">Home</a> |</li>
          	<li>
          		<c:choose>
          			<c:when test="${loginname != ''}">
          				<a href='<c:url value="/j_spring_security_logout" />' >Logout</a>
          			</c:when>
          			<c:otherwise>
          				<a id="" href="/pizza/login.action">Login</a>
          			</c:otherwise>
          		</c:choose>
          	</li>
         </ul>
        <div class="clear"></div>
        <ul class="links_top">
           	  <li>
           		<c:choose>
          			<c:when test="${loginname != ''}">
          				<strong>Welcome ${loginname}!!!</strong>
          			</c:when>
          			<c:otherwise>
          				<strong>Welcome Guest!!!</strong>
          			</c:otherwise>
          		</c:choose>
           	</li>
           <li class="colr"><strong>Call Tollfree</strong>&nbsp;<strong>+91-9717773454</strong></li>
        </ul>
       <form action="" name="search" id="search">
           <div class="search">
           </div>
       </form>
    </div>

	<div class="navigation">
   		<div id="smoothmenu1" class="ddsmoothmenu">
      		<ul>
      			<c:forEach items="${nav}" var="nav" varStatus="status">
         			<li id="${nav.key}"><a href="${nav.action}"><span class="nvlink">${nav.name}</span></a></li>
         		</c:forEach>
      		</ul>
      		<div class="clear"></div>
   		</div>
	</div>

</div>


<div class="clear"></div>
<!-------------End--header---------->
</html>